package com.mz.ozy.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mz.ozy.R;
import com.mz.ozy.bean.PopularBean;
import com.mz.ozy.utils.glideUtils.GlideUtils;
import com.mz.ozy.widget.CustomRoundAngleImageView;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * Created by administrator on 2018/11/21.
 */
public class PopularHAdapter extends BaseQuickAdapter<PopularBean.ActivityListBean, BaseViewHolder> {


    public PopularHAdapter(@Nullable List<PopularBean.ActivityListBean> data) {
        super(R.layout.item_popular_h, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PopularBean.ActivityListBean item) {
        CustomRoundAngleImageView imageView = helper.getView(R.id.image);
        GlideUtils.loadImg(mContext, imageView, item.getImg(), R.mipmap.default_main_banner);

    }
}
